package com.iflytek.iot.common.log.log2kafka.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * @author taoyang13
 * @version 1.0
 * @description
 * @date 2021/1/11 09:14:11
 */
@Configuration
public class LogConfig {

    public static boolean outputLog;

    public static boolean isOutputLog() {
        return outputLog;
    }

    @Value("${log.output.switch}")
    public void setOutputLog(boolean outputLog) {
        LogConfig.outputLog = outputLog;
    }
}
